<?php
################################################################################
##              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #
## --------------------------------------------------------------------------- #
##  PHP AdminPanel Free                                                        #
##  Developed by:  ApPhp <info@apphp.com>                                      # 
##  License:       GNU GPL v.2                                                 #
##  Site:          http://www.apphp.com/php-adminpanel/                        #
##  Copyright:     PHP AdminPanel (c) 2006-2009. All rights reserved.          #
##                                                                             #
##  Additional modules (embedded):                                             #
##  -- PHP DataGrid 4.2.8                   http://www.apphp.com/php-datagrid/ #
##  -- JS AFV 1.0.5                 http://www.apphp.com/js-autoformvalidator/ #
##  -- jQuery 1.1.2                                         http://jquery.com/ #
##                                                                             #
################################################################################

    require_once("inc/config.inc.php");
    require_once("inc/database.inc.php");
    
  // Prepare panel settings
    $db=new Database();	
    $db->open();

    $sql="SELECT * FROM "._DB_PREFIX."settings ;";			
    $db->query($sql);
    if($row = $db->fetchAssoc()){
	$site_name = $row['site_name'];
	$css_style = $row['css_style'];
	$header_text = $row['header_text'];	
    }else{
	$site_name = _SITE_NAME;
	$css_style = _CSS_STYLE;
	$header_text = _PANEL_NAME;	
    }
        
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<html>
<head>
    <title><? echo $site_name; ?> :: Bienvenidos</title>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <link href="css/style_<? echo $css_style;?>.css" type="text/css" rel="stylesheet">
	<link href="../css/default.css" type="text/css" rel="stylesheet">
	
    <style type="text/css">
<!--
.style1 {font-size: xx-large}
-->
    </style>
</head>

<body class="header">
<!-- HEADER -->
    <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" >
    <tbody>
	
    <tr>
        <td height="150px" valign="top" align="left" ><div align="center"><span class="style1">EMPRESA DE ENVIOS</span></div></td>
    </tr>
    </table>
</body>
</html>

